package hcn.protocol.brandnew.zhenliao.jianyan;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 检验申请信息撤销-请求消息 - ODS_03050011
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "MsgBody")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabRequestCancelRequest extends BaseRequest {

    /**
     * 请求内容
     */
    @XmlElement(name = "Request")
    private Request request;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Request {

        /**
         * 就诊机构代码
         */
        @XmlElement(name = "VisitOrganization")
        private String visitOrganization;
        /**
         * 检验申请单编号
         */
        @XmlElement(name = "RequestId")
        private String requestId;
        /**
         * 操作日期时间
         */
        @XmlElement(name = "OperateDateTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date operateDateTime;
        /**
         * 操作者姓名
         */
        @XmlElement(name = "OperatorName")
        private String operatorName;
        /**
         * 操作者工号
         */
        @XmlElement(name = "OperatorId")
        private String operatorId;
    }

}
